3.8.47 \(\int \frac {\sqrt {c+d \sin (e+f x)}}{a+b \sin (e+f x)} \, dx\) [747]

Optimal. Leaf size=153 \[ \frac {2 d F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{b f \sqrt {c+d \sin (e+f x)}}+\frac {2 (b c-a d) \Pi \left (\frac {2 b}{a+b};\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{b (a+b) f \sqrt {c+d \sin (e+f x)}} \]

[Out]

-2*d*(sin(1/2*e+1/4*Pi+1/2*f*x)^2)^(1/2)/sin(1/2*e+1/4*Pi+1/2*f*x)*EllipticF(cos(1/2*e+1/4*Pi+1/2*f*x),2^(1/2)
*(d/(c+d))^(1/2))*((c+d*sin(f*x+e))/(c+d))^(1/2)/b/f/(c+d*sin(f*x+e))^(1/2)-2*(-a*d+b*c)*(sin(1/2*e+1/4*Pi+1/2
*f*x)^2)^(1/2)/sin(1/2*e+1/4*Pi+1/2*f*x)*EllipticPi(cos(1/2*e+1/4*Pi+1/2*f*x),2*b/(a+b),2^(1/2)*(d/(c+d))^(1/2
))*((c+d*sin(f*x+e))/(c+d))^(1/2)/b/(a+b)/f/(c+d*sin(f*x+e))^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.21, antiderivative size = 153, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.185, Rules used = {2882, 2742, 2740, 2886, 2884} \begin {gather*} \frac {2 (b c-a d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} \Pi \left (\frac {2 b}{a+b};\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{b f (a+b) \sqrt {c+d \sin (e+f x)}}+\frac {2 d \sqrt {\frac {c+d \sin (e+f x)}{c+d}} F\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{b f \sqrt {c+d \sin (e+f x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[c + d*Sin[e + f*x]]/(a + b*Sin[e + f*x]),x]

[Out]

(2*d*EllipticF[(e - Pi/2 + f*x)/2, (2*d)/(c + d)]*Sqrt[(c + d*Sin[e + f*x])/(c + d)])/(b*f*Sqrt[c + d*Sin[e +
f*x]]) + (2*(b*c - a*d)*EllipticPi[(2*b)/(a + b), (e - Pi/2 + f*x)/2, (2*d)/(c + d)]*Sqrt[(c + d*Sin[e + f*x])
/(c + d)])/(b*(a + b)*f*Sqrt[c + d*Sin[e + f*x]])

Rule 2740

Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/(d*Sqrt[a + b]))*EllipticF[(1/2)*(c - P
i/2 + d*x), 2*(b/(a + b))], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]

Rule 2742

Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[(a + b*Sin[c + d*x])/(a + b)]/Sqrt[a
+ b*Sin[c + d*x]], Int[1/Sqrt[a/(a + b) + (b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a
^2 - b^2, 0] &&  !GtQ[a + b, 0]

Rule 2882

Int[Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]/((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[d/b
, Int[1/Sqrt[c + d*Sin[e + f*x]], x], x] + Dist[(b*c - a*d)/b, Int[1/((a + b*Sin[e + f*x])*Sqrt[c + d*Sin[e +
f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]

Rule 2884

Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp
[(2/(f*(a + b)*Sqrt[c + d]))*EllipticPi[2*(b/(a + b)), (1/2)*(e - Pi/2 + f*x), 2*(d/(c + d))], x] /; FreeQ[{a,
 b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0] && GtQ[c + d, 0]

Rule 2886

Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])*Sqrt[(c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Dist
[Sqrt[(c + d*Sin[e + f*x])/(c + d)]/Sqrt[c + d*Sin[e + f*x]], Int[1/((a + b*Sin[e + f*x])*Sqrt[c/(c + d) + (d/
(c + d))*Sin[e + f*x]]), x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && N
eQ[c^2 - d^2, 0] &&  !GtQ[c + d, 0]

Rubi steps

\begin {align*} \int \frac {\sqrt {c+d \sin (e+f x)}}{a+b \sin (e+f x)} \, dx &=\frac {d \int \frac {1}{\sqrt {c+d \sin (e+f x)}} \, dx}{b}+\frac {(b c-a d) \int \frac {1}{(a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}} \, dx}{b}\\ &=\frac {\left (d \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{\sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{b \sqrt {c+d \sin (e+f x)}}+\frac {\left ((b c-a d) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{(a+b \sin (e+f x)) \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{b \sqrt {c+d \sin (e+f x)}}\\ &=\frac {2 d F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{b f \sqrt {c+d \sin (e+f x)}}+\frac {2 (b c-a d) \Pi \left (\frac {2 b}{a+b};\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{b (a+b) f \sqrt {c+d \sin (e+f x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 2.37, size = 114, normalized size = 0.75 \begin {gather*} -\frac {2 \left ((a+b) d F\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )+(b c-a d) \Pi \left (\frac {2 b}{a+b};\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{b (a+b) f \sqrt {c+d \sin (e+f x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[c + d*Sin[e + f*x]]/(a + b*Sin[e + f*x]),x]

[Out]

(-2*((a + b)*d*EllipticF[(-2*e + Pi - 2*f*x)/4, (2*d)/(c + d)] + (b*c - a*d)*EllipticPi[(2*b)/(a + b), (-2*e +
 Pi - 2*f*x)/4, (2*d)/(c + d)])*Sqrt[(c + d*Sin[e + f*x])/(c + d)])/(b*(a + b)*f*Sqrt[c + d*Sin[e + f*x]])

________________________________________________________________________________________

Maple [A]
time = 6.86, size = 181, normalized size = 1.18

method result size
default \(\frac {2 \left (\EllipticF \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, \sqrt {\frac {c -d}{c +d}}\right )-\EllipticPi \left (\sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}, -\frac {\left (c -d \right ) b}{a d -b c}, \sqrt {\frac {c -d}{c +d}}\right )\right ) \sqrt {-\frac {d \left (1+\sin \left (f x +e \right )\right )}{c -d}}\, \sqrt {-\frac {\left (-1+\sin \left (f x +e \right )\right ) d}{c +d}}\, \sqrt {\frac {c +d \sin \left (f x +e \right )}{c -d}}\, \left (c -d \right )}{b \cos \left (f x +e \right ) \sqrt {c +d \sin \left (f x +e \right )}\, f}\) \(181\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c+d*sin(f*x+e))^(1/2)/(a+b*sin(f*x+e)),x,method=_RETURNVERBOSE)

[Out]

2*(EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))-EllipticPi(((c+d*sin(f*x+e))/(c-d))^(1/2),-(c
-d)*b/(a*d-b*c),((c-d)/(c+d))^(1/2)))/b*(-d*(1+sin(f*x+e))/(c-d))^(1/2)*(-(-1+sin(f*x+e))*d/(c+d))^(1/2)*((c+d
*sin(f*x+e))/(c-d))^(1/2)*(c-d)/cos(f*x+e)/(c+d*sin(f*x+e))^(1/2)/f

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))^(1/2)/(a+b*sin(f*x+e)),x, algorithm="maxima")

[Out]

integrate(sqrt(d*sin(f*x + e) + c)/(b*sin(f*x + e) + a), x)

________________________________________________________________________________________

Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))^(1/2)/(a+b*sin(f*x+e)),x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {c + d \sin {\left (e + f x \right )}}}{a + b \sin {\left (e + f x \right )}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))**(1/2)/(a+b*sin(f*x+e)),x)

[Out]

Integral(sqrt(c + d*sin(e + f*x))/(a + b*sin(e + f*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((c+d*sin(f*x+e))^(1/2)/(a+b*sin(f*x+e)),x, algorithm="giac")

[Out]

integrate(sqrt(d*sin(f*x + e) + c)/(b*sin(f*x + e) + a), x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {c+d\,\sin \left (e+f\,x\right )}}{a+b\,\sin \left (e+f\,x\right )} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((c + d*sin(e + f*x))^(1/2)/(a + b*sin(e + f*x)),x)

[Out]

int((c + d*sin(e + f*x))^(1/2)/(a + b*sin(e + f*x)), x)

________________________________________________________________________________________